package com.lcj.crawler;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;
import com.geccocrawler.gecco.spider.SpiderBean;

@Gecco(matchUrl = "https://www.zptong.com/plus/ajax_contact.php?id={recruitId}&time={time}&act=jobs_contact", pipelines = { "saveZptContactPipeline" })
public class ZptContactPage implements HtmlBean, SpiderBean {

    @Request
    private HttpRequest request;

    @RequestParameter
    private String recruitId;

    @Text
    @HtmlField(cssPath = "div.c-contact > div:nth-child(1) > div:nth-child(2)")
    private String contactPerson;

    @Text
    @HtmlField(cssPath = "div.c-contact > div:nth-child(2) > div:nth-child(2) > span")
    private String telPhone;

    @Text
    @HtmlField(cssPath = "div.c-contact > div:nth-child(3) > div:nth-child(2) > span")
    private String phone;

    @Text
    @HtmlField(cssPath = "div.c-contact > div:nth-child(4) > div:nth-child(2) > span")
    private String email;

    @Text
    @HtmlField(cssPath = "div.c-contact > div:nth-last-child(1) > div:nth-child(2)")
    private String address;

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }

    public String getTelPhone() {
        return telPhone;
    }

    public void setTelPhone(String telPhone) {
        this.telPhone = telPhone;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRecruitId() {
        return recruitId;
    }

    public void setRecruitId(String recruitId) {
        this.recruitId = recruitId;
    }
}
